<?php
namespace app\common\model;

use think\Model;

class BannerModel extends Model
{
    //指定主键
    protected $pk = 'banner_id';
    //指定表名
    protected $table = 'ds_banner';

    public function getBannerStatusAttr($value)
    {
        $status = [0=>'禁用',1=>'正常'];
        return $status[$value];
    }

    public function getBannerCityIdAttr($value)
    {
        $status = [0=>'禁用',1=>'正常'];
        return $status[$value];
    }

}
